package com.coffee.order.service.inquire.dao;

import com.coffee.order.api.inquire.query.InquireOrderLogQuery;
import com.coffee.order.service.inquire.bean.InquireOrderLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface InquireOrderLogDao {
    public InquireOrderLog findById(Integer id);

    public List<InquireOrderLog> findByOrderId(@Param("orderId") Integer orderId, @Param("type") String type);

    public InquireOrderLog findByIdForUpdate(Integer id);

    public List<InquireOrderLog> findByIds(@Param("idList") List<Integer> idList);

    public Integer count(@Param("param") InquireOrderLogQuery param);

    public List<InquireOrderLog> page(@Param("param") InquireOrderLogQuery param, @Param("offset") Integer offset, @Param("rows") Integer rows);

    public InquireOrderLog findFirst(@Param("param") InquireOrderLogQuery param);

    public Integer insert(InquireOrderLog param);

    Integer insertBatch(List<InquireOrderLog> list);

    public void updateById(@Param("param") InquireOrderLog param);

    public Integer deleteById(Integer id);

    public Integer deleteByIds(List<Integer> idList);

}